<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IBustConfigService</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
<link rel="home" href="index.html" title="IBust Reference Manual">
<link rel="up" href="ch04.html" title="Configuration">
<link rel="prev" href="IBustConfig.html" title="IBustConfig">
<link rel="next" href="IBustObservedPath.html" title="IBustObservedPath">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="IBustConfig.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch04.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">IBust Reference Manual</th>
<td><a accesskey="n" href="IBustObservedPath.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#IBustConfigService.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#IBustConfigService.description" class="shortcut">Description</a>
                   | 
                  <a href="#IBustConfigService.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="IBustConfigService"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="IBustConfigService.top_of_page"></a>IBustConfigService</span></h2>
<p>IBustConfigService — Configuration service back-end.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="IBustConfigService.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="IBustConfigService.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct              <a class="link" href="IBustConfigService.html#IBustConfigService-struct" title="struct IBustConfigService">IBustConfigService</a>;
struct              <a class="link" href="IBustConfigService.html#IBustConfigServiceClass" title="struct IBustConfigServiceClass">IBustConfigServiceClass</a>;
<a class="link" href="IBustConfigService.html" title="IBustConfigService"><span class="returnvalue">IBustConfigService</span></a> * <a class="link" href="IBustConfigService.html#ibust-config-service-new" title="ibust_config_service_new ()">ibust_config_service_new</a>             (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="IBustConfigService.html#ibust-config-service-value-changed" title="ibust_config_service_value_changed ()">ibust_config_service_value_changed</a>   (<em class="parameter"><code><a class="link" href="IBustConfigService.html" title="IBustConfigService"><span class="type">IBustConfigService</span></a> *config</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *section</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariant</span> *value</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="IBustConfigService.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GObject
   +----GInitiallyUnowned
         +----<a class="link" href="IBustObject.html" title="IBustObject">IBustObject</a>
               +----<a class="link" href="IBustService.html" title="IBustService">IBustService</a>
                     +----IBustConfigService
</pre>
</div>
<div class="refsect1">
<a name="IBustConfigService.description"></a><h2>Description</h2>
<p>
An IBustConfigService is a base class for other configuration services such as GConf.
Currently, directly known sub class is IBustConfigGConf.
</p>
<p>
IBustConfigServiceClass has following member functions:
</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<p>gboolean set_value(IBustConfigService *config, const gchar *section, const gchar *name,
            const GValue *value, IBustError **error)
        </p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">config:</span></p></td>
<td>A configure service</td>
</tr>
<tr>
<td><p><span class="term">section:</span></p></td>
<td>Section name of the configuration option.</td>
</tr>
<tr>
<td><p><span class="term">name:</span></p></td>
<td>Name of the configuration option.</td>
</tr>
<tr>
<td><p><span class="term">value:</span></p></td>
<td>GValue that holds the value.</td>
</tr>
<tr>
<td><p><span class="term">error:</span></p></td>
<td>Error outputs here.</td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td>TRUE if succeed; FALSE otherwise.</td>
</tr>
</tbody>
</table></div>
<p>Set a value to a configuration option.
        </p>
</li>
<li class="listitem">
<p>gboolean get_value(IBustConfigService *config, const gchar *section, const gchar *name,
            GValue *value, IBustError **error)
        </p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">config:</span></p></td>
<td>A configure service</td>
</tr>
<tr>
<td><p><span class="term">section:</span></p></td>
<td>Section name of the configuration option.</td>
</tr>
<tr>
<td><p><span class="term">name:</span></p></td>
<td>Name of the configuration option.</td>
</tr>
<tr>
<td><p><span class="term">value:</span></p></td>
<td>GValue that holds the value.</td>
</tr>
<tr>
<td><p><span class="term">error:</span></p></td>
<td>Error outputs here.</td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td>TRUE if succeed; FALSE otherwise.</td>
</tr>
</tbody>
</table></div>
<p>Get value of a configuration option.
       </p>
</li>
<li class="listitem">
<p>gboolean unset(IBustConfigService *config, const gchar *section, const gchar *name,
            IBustError **error)
        </p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">config:</span></p></td>
<td>A configure service</td>
</tr>
<tr>
<td><p><span class="term">section:</span></p></td>
<td>Section name of the configuration option.</td>
</tr>
<tr>
<td><p><span class="term">name:</span></p></td>
<td>Name of the configuration option.</td>
</tr>
<tr>
<td><p><span class="term">error:</span></p></td>
<td>Error outputs here.</td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td>TRUE if succeed; FALSE otherwise.</td>
</tr>
</tbody>
</table></div>
<p>Remove an entry to a configuration option.
        </p>
</li>
</ul></div>
<p>
</p>
</div>
<div class="refsect1">
<a name="IBustConfigService.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="IBustConfigService-struct"></a><h3>struct IBustConfigService</h3>
<pre class="programlisting">struct IBustConfigService;</pre>
<p>
An opaque data type representing a configure service.
</p>
</div>
<hr>
<div class="refsect2">
<a name="IBustConfigServiceClass"></a><h3>struct IBustConfigServiceClass</h3>
<pre class="programlisting">struct IBustConfigServiceClass {
    /* class members */
    gboolean    (* set_value)   (IBustConfigService    *config,
                                 const gchar          *section,
                                 const gchar          *name,
                                 GVariant             *value,
                                 GError              **error);
    /**
     * get_value:
     * @config: An IBustConfig.
     * @section: section name
     * @name: value name
     *
     * @returns: (transfer full): The value in config associated with section and name.
     *
     */
    GVariant *  (* get_value)   (IBustConfigService    *config,
                                 const gchar          *section,
                                 const gchar          *name,
                                 GError              **error);
    gboolean    (* unset_value) (IBustConfigService    *config,
                                 const gchar          *section,
                                 const gchar          *name,
                                 GError              **error);
    GVariant *  (* get_values)  (IBustConfigService    *config,
                                 const gchar          *section,
                                 GError              **error);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ibust-config-service-new"></a><h3>ibust_config_service_new ()</h3>
<pre class="programlisting"><a class="link" href="IBustConfigService.html" title="IBustConfigService"><span class="returnvalue">IBustConfigService</span></a> * ibust_config_service_new             (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>);</pre>
<p>
New an IBustConfigService from an GDBusConnection.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
<td>An GDBusConnection.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly allocated IBustConfigServices.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-config-service-value-changed"></a><h3>ibust_config_service_value_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ibust_config_service_value_changed   (<em class="parameter"><code><a class="link" href="IBustConfigService.html" title="IBustConfigService"><span class="type">IBustConfigService</span></a> *config</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *section</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariant</span> *value</code></em>);</pre>
<p>
Change a value of a configuration option
by sending a "ValueChanged" message to IBust service.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td>
<td>An IBustConfigService.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>section</code></em> :</span></p></td>
<td>Section name of the configuration option.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>Name of the configure option.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>GVariant that holds the value.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>